import addressIndex from "@/views/address/index.vue"
import add from "@/views/address/add.vue"

// 子路由列表
const routes = [
    {
        name:"addressIndex",
        path:"index",
        component:addressIndex,
        meta:{login:true}
    },
    {
        name:"addrssAdd",
        path:"add",
        component:add,
        meta:{login:true}
    }
]

// 创建父路由
const parentRouter = {
    template:"<router-view></router-view>"
}

// 抛出路由节点
export default [{
    name:"address",
    component:parentRouter,
    path:"/address",
    children:routes   
}]

